package com.leyou.item.inter.pojo;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;

/**
 * @数表名称 tb_stock
 * @开发日期 2020-03-05
 */
@Data
@Table(name="tb_stock")
public class Stock implements Serializable {
    
    /** 库存对应的商品sku id (主健ID) */
    @Id
    @Column(name="sku_id")
    private Long skuId;

    /** 可秒杀库存  (默认值为: 0) */
    @Column(name="seckill_stock")
    private Integer seckillStock;

    /** 秒杀总数量  (默认值为: 0) */
    @Column(name="seckill_total")
    private Integer seckillTotal;

    /** 库存数量 */
    @Column(name="stock")
    private Integer stock;

    private static final long serialVersionUID = 1L;
}